<template>

  <div>
    <div style="border :2px solid pink ">
      <button @click="btn">随机切换</button><br>
      <router-link to="/foo/paihang/aa">aa</router-link>
      <router-link to="/foo/paihang/bb">bb</router-link>
      <router-link to="/foo/paihang/cc">cc</router-link>
    </div>

    <router-view></router-view>
  </div>

</template>

<script>
  import {
    filter
  } from 'vue/types/umd'
  export default {
    data() {
      return {
        list: ["/foo/paihang/aa", "/foo/paihang/bb", "/foo/paihang/cc"]
      }
    },
    methods: {
      btn() {
        this.$router.push(
          this.list[Math.floor(Math.random() * this.list.length)]
        )
        array.forEach(element => {

        });

      }
    }
  }
</script>

<style>

</style>